import 'package:flutter/material.dart';
import 'package:lovify/widgets/aq_text.dart';

class AQButton extends StatelessWidget {
  final String label;
  final void Function()? onPressed;

  const AQButton({
    super.key,
    required this.label,
    this.onPressed,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: double.maxFinite,
      child: ElevatedButton(
        style: ElevatedButton.styleFrom(
          shadowColor: Colors.transparent,
          backgroundColor: const Color(0xFFFF5D5B),
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(4),
          ),
          padding: const EdgeInsets.symmetric(vertical: 16),
        ),
        child: AQText(
          color: Colors.white,
          content: label,
        ),
        onPressed: onPressed,
      ),
    );
  }
}
